﻿@model Wiwi.ViewModels.ProfileView 
@{
    ViewBag.Title = "Profile";
    var HomeDir = System.Configuration.ConfigurationManager.AppSettings["HomeDirectory"].ToString(); 
}


 
<div class="grid_6 box-shadow margin-top" id="wiwi-wants">

    <h4 class="tabbed">Your Pitches</h4>
    @foreach (var pit in Model.VPitches)
    { 
    <div class="wiwi-want-box">
        <div class="user-choice-reply">
        @if (pit.IsSelected != null)
        {
            if (pit.IsSelected == true)
            {
                <a href ="@HomeDir/Dealing/PitchComm?Wid=@pit.WantID.ToString()&clientID=@pit.UserID.ToString()"><strong>Pitch Accepted</strong></a>         
            }
            else
            {
                <a href ="@HomeDir/Dealing/PitchComm?Wid=@pit.WantID.ToString()&clientID=@pit.UserID.ToString()"><strong>Pitch Declined</strong></a>
            }
        }
        else
        {
            <a href ="#"><strong>Awaiting response</strong></a>
        }
        </div>
    	<h5>@pit.FName.ToString()   @pit.Lname.ToString()<br /><span>@pit.WiwiDate.Value.ToString("dd/MM/yyyy")</span></h5>
    	
    	<p>@pit.WantDesc.ToString()</p>
        <div class="also-want">
        
         </div>
    	<p class="tagged">Tagged ~ <a href="#">#skypt.SupplierIDne</a> <a href="#">#gtr</a> <a href="#">#10-14k</a> </p>
        
         
        

    </div>
    
    <hr />
    }
    </div>
    <div class="grid_7 box-shadow margin-top" id="wiwi-pitches">
    <h4 class="tabbed xWide">Recent Activities</h4> 
    @foreach (var com in Model.comms)
    {
        <div class="wiwi-pitches-box"> 
            <div class="left-col"><img id="ImgPhoto" height ="48px" width="48" src='@Url.Action("ShowUserImage", "Home", new { Uid = @com.FrmUserID })' /></div>
            <div class="right-col">
                <div class="user-choice-reply">
                
                
                </div>
                
                <h5>@com.ClientFname.ToString()   @com.ClientLname.ToString()<span>@com.CommDate.ToString("dd/MM/yyyy")</span></h5>
                <p>@com.Comments.ToString()</p>
            </div> 
        </div>
    }
    </div>